
#include <iostream>

#include "delegate/Delegate.h"

class Foo
{
public :
    Foo()
    {

    }

    int PrintNumber(int n)
    {
        printf("number is %d \n", n);
        return 1;
    }
};

int main()
{
    Foo obj;

    Delegate * del = new Delegate( &Foo::PrintNumber, &obj);

    del->Run(1);
}

